home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / eval-reg.elc.z / eval-reg.elc
Emacs Compiled Lisp  |  1998-10-28  |  4.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 68 75 20 | 4a 61 6e 20 31 38 20 30 | on Thu |Jan 18 0|
|00000040| 31 3a 35 30 3a 35 39 20 | 31 39 39 36 0a 3b 3b 3b |1:50:59 |1996.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 65 76 61 6c 2d | 72 65 67 2e 65 6c 0a 3b |sp/eval-|reg.el.;|
|00000080| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|00000090| 20 31 39 2e 33 30 2e 37 | 30 2e 37 2e 0a 3b 3b 3b | 19.30.7|0.7..;;;|
|000000a0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000b0| 6e 20 46 53 46 20 32 2e | 31 30 0a 3b 3b 3b 20 6f |n FSF 2.|10.;;; o|
|000000c0| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 20 69 73 20 6f |ptimizat|ion is o|
|000000d0| 6e 2e 0a 3b 3b 3b 20 74 | 68 69 73 20 66 69 6c 65 |n..;;; t|his file|
|000000e0| 20 75 73 65 73 20 6f 70 | 63 6f 64 65 73 20 77 68 | uses op|codes wh|
|000000f0| 69 63 68 20 64 6f 20 6e | 6f 74 20 65 78 69 73 74 |ich do n|ot exist|
|00000100| 20 69 6e 20 45 6d 61 63 | 73 20 31 38 2e 0a 0a 28 | in Emac|s 18...(|
|00000110| 69 66 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |if (and |(boundp |
|00000120| 27 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 29 0a |'emacs-v|ersion).|
|00000130| 09 20 28 6f 72 20 28 61 | 6e 64 20 28 62 6f 75 6e |. (or (a|nd (boun|
|00000140| 64 70 20 27 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |dp 'epoc|h::versi|
|00000150| 6f 6e 29 20 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |on) epoc|h::versi|
|00000160| 6f 6e 29 0a 09 20 20 20 | 20 20 28 73 74 72 69 6e |on).. | (strin|
|00000170| 67 2d 6c 65 73 73 70 20 | 65 6d 61 63 73 2d 76 65 |g-lessp |emacs-ve|
|00000180| 72 73 69 6f 6e 20 22 31 | 39 2e 32 39 22 29 29 29 |rsion "1|9.29")))|
|00000190| 0a 20 20 20 20 28 65 72 | 72 6f 72 20 22 60 65 76 |. (er|ror "`ev|
|000001a0| 61 6c 2d 72 65 67 2e 65 | 6c 27 20 77 61 73 20 63 |al-reg.e|l' was c|
|000001b0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001c0| 73 20 31 39 2e 32 39 20 | 6f 72 20 6c 61 74 65 72 |s 19.29 |or later|
|000001d0| 22 29 29 0a 0a 0a 28 62 | 79 74 65 2d 63 6f 64 65 |"))...(b|yte-code|
|000001e0| 20 22 c0 c1 21 84 5c 66 | 00 c2 c1 c3 4b 5c 22 88 | "..!.\f|....K\".|
|000001f0| c0 c4 21 84 5c 22 00 c2 | c4 c0 c5 21 83 1f 00 c5 |..!.\"..|...!....|
|00000200| 4b 82 20 00 c6 5c 22 88 | c0 c7 21 84 2e 00 c2 c7 |K. ..\".|..!.....|
|00000210| c8 4b 5c 22 88 c0 87 22 | 20 5b 66 62 6f 75 6e 64 |.K\"..."| [fbound|
|00000220| 70 20 6f 72 69 67 69 6e | 61 6c 2d 65 76 61 6c 2d |p origin|al-eval-|
|00000230| 72 65 67 69 6f 6e 20 64 | 65 66 61 6c 69 61 73 20 |region d|efalias |
|00000240| 65 76 61 6c 2d 72 65 67 | 69 6f 6e 20 6f 72 69 67 |eval-reg|ion orig|
|00000250| 69 6e 61 6c 2d 65 76 61 | 6c 2d 62 75 66 66 65 72 |inal-eva|l-buffer|
|00000260| 20 65 76 61 6c 2d 62 75 | 66 66 65 72 20 75 6e 64 | eval-bu|ffer und|
|00000270| 65 66 69 6e 65 64 20 6f | 72 69 67 69 6e 61 6c 2d |efined o|riginal-|
|00000280| 65 76 61 6c 2d 63 75 72 | 72 65 6e 74 2d 62 75 66 |eval-cur|rent-buf|
|00000290| 66 65 72 20 65 76 61 6c | 2d 63 75 72 72 65 6e 74 |fer eval|-current|
|000002a0| 2d 62 75 66 66 65 72 5d | 20 34 29 0a 23 40 32 36 |-buffer]| 4).#@26|
|000002b0| 36 20 49 66 20 74 68 65 | 20 76 61 6c 75 65 20 69 |6 If the| value i|
|000002c0| 73 20 30 2c 20 75 73 65 | 20 74 68 65 20 6f 72 69 |s 0, use| the ori|
|000002d0| 67 69 6e 61 6c 20 76 65 | 72 73 69 6f 6e 20 6f 66 |ginal ve|rsion of|
|000002e0| 20 60 65 6c 69 73 70 2d | 65 76 61 6c 2d 72 65 67 | `elisp-|eval-reg|
|000002f0| 69 6f 6e 27 2e 0a 43 61 | 6c 6c 65 72 73 20 6f 66 |ion'..Ca|llers of|
|00000300| 20 60 65 6c 69 73 70 2d | 65 76 61 6c 2d 72 65 67 | `elisp-|eval-reg|
|00000310| 69 6f 6e 27 20 73 68 6f | 75 6c 64 20 69 6e 63 72 |ion' sho|uld incr|
|00000320| 65 6d 65 6e 74 20 60 65 | 6c 69 73 70 2d 65 76 61 |ement `e|lisp-eva|
|00000330| 6c 2d 72 65 67 69 6f 6e | 2d 6c 65 76 65 6c 27 0a |l-region|-level'.|
|00000340| 77 68 69 6c 65 20 74 68 | 65 20 4c 69 73 70 20 76 |while th|e Lisp v|
|00000350| 65 72 73 69 6f 6e 20 73 | 68 6f 75 6c 64 20 62 65 |ersion s|hould be|
|00000360| 20 75 73 65 64 2e 20 20 | 49 6e 73 74 61 6c 6c 69 | used. |Installi|
|00000370| 6e 67 20 60 65 6c 69 73 | 70 2d 65 76 61 6c 2d 72 |ng `elis|p-eval-r|
|00000380| 65 67 69 6f 6e 27 0a 69 | 6e 63 72 65 6d 65 6e 74 |egion'.i|ncrement|
|00000390| 73 20 69 74 20 6f 6e 63 | 65 2c 20 61 6e 64 20 75 |s it onc|e, and u|
|000003a0| 6e 69 6e 73 74 61 6c 6c | 69 6e 67 20 64 65 63 72 |ninstall|ing decr|
|000003b0| 65 6d 65 6e 74 73 20 69 | 74 2e 1f 0a 28 64 65 66 |ements i|t...(def|
|000003c0| 76 61 72 20 65 6c 69 73 | 70 2d 65 76 61 6c 2d 72 |var elis|p-eval-r|
|000003d0| 65 67 69 6f 6e 2d 6c 65 | 76 65 6c 20 30 20 28 23 |egion-le|vel 0 (#|
|000003e0| 24 20 2e 20 36 39 30 29 | 29 0a 28 64 65 66 61 6c |$ . 690)|).(defal|
|000003f0| 69 61 73 20 27 65 6c 69 | 73 70 2d 65 76 61 6c 2d |ias 'eli|sp-eval-|
|00000400| 72 65 67 69 6f 6e 2d 69 | 6e 73 74 61 6c 6c 20 23 |region-i|nstall #|
|00000410| 5b 6e 69 6c 20 22 c0 c1 | c2 5c 22 88 c0 c3 c4 5c |[nil "..|.\"....\|
|00000420| 22 88 c0 c5 c6 5c 22 88 | 0e 07 54 89 16 07 87 22 |"....\".|..T...."|
|00000430| 20 5b 64 65 66 61 6c 69 | 61 73 20 65 76 61 6c 2d | [defali|as eval-|
|00000440| 72 65 67 69 6f 6e 20 65 | 6c 69 73 70 2d 65 76 61 |region e|lisp-eva|
|00000450| 6c 2d 72 65 67 69 6f 6e | 20 65 76 61 6c 2d 62 75 |l-region| eval-bu|
|00000460| 66 66 65 72 20 65 6c 69 | 73 70 2d 65 76 61 6c 2d |ffer eli|sp-eval-|
|00000470| 62 75 66 66 65 72 20 65 | 76 61 6c 2d 63 75 72 72 |buffer e|val-curr|
|00000480| 65 6e 74 2d 62 75 66 66 | 65 72 20 65 6c 69 73 70 |ent-buff|er elisp|
|00000490| 2d 65 76 61 6c 2d 63 75 | 72 72 65 6e 74 2d 62 75 |-eval-cu|rrent-bu|
|000004a0| 66 66 65 72 20 65 6c 69 | 73 70 2d 65 76 61 6c 2d |ffer eli|sp-eval-|
|000004b0| 72 65 67 69 6f 6e 2d 6c | 65 76 65 6c 5d 20 33 20 |region-l|evel] 3 |
|000004c0| 6e 69 6c 20 6e 69 6c 5d | 29 0a 28 64 65 66 61 6c |nil nil]|).(defal|
|000004d0| 69 61 73 20 27 65 6c 69 | 73 70 2d 65 76 61 6c 2d |ias 'eli|sp-eval-|
|000004e0| 72 65 67 69 6f 6e 2d 75 | 6e 69 6e 73 74 61 6c 6c |region-u|ninstall|
|000004f0| 20 23 5b 6e 69 6c 20 22 | c0 09 56 83 0b 00 09 53 | #[nil "|..V....S|
|00000500| 89 11 87 c2 11 c3 c4 c5 | 4b 5c 22 88 c3 c6 c7 4b |........|K\"....K|
|00000510| 5c 22 88 c3 c8 c9 4b 5c | 22 87 22 20 5b 31 20 65 |\"....K\|"." [1 e|
|00000520| 6c 69 73 70 2d 65 76 61 | 6c 2d 72 65 67 69 6f 6e |lisp-eva|l-region|
|00000530| 2d 6c 65 76 65 6c 20 30 | 20 64 65 66 61 6c 69 61 |-level 0| defalia|
|00000540| 73 20 65 76 61 6c 2d 72 | 65 67 69 6f 6e 20 6f 72 |s eval-r|egion or|
|00000550| 69 67 69 6e 61 6c 2d 65 | 76 61 6c 2d 72 65 67 69 |iginal-e|val-regi|
|00000560| 6f 6e 20 65 76 61 6c 2d | 62 75 66 66 65 72 20 6f |on eval-|buffer o|
|00000570| 72 69 67 69 6e 61 6c 2d | 65 76 61 6c 2d 62 75 66 |riginal-|eval-buf|
|00000580| 66 65 72 20 65 76 61 6c | 2d 63 75 72 72 65 6e 74 |fer eval|-current|
|00000590| 2d 62 75 66 66 65 72 20 | 6f 72 69 67 69 6e 61 6c |-buffer |original|
|000005a0| 2d 65 76 61 6c 2d 63 75 | 72 72 65 6e 74 2d 62 75 |-eval-cu|rrent-bu|
|000005b0| 66 66 65 72 5d 20 33 20 | 6e 69 6c 20 6e 69 6c 5d |ffer] 3 |nil nil]|
|000005c0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000005d0| c2 c3 23 88 c0 c1 c4 c3 | 23 88 c0 c1 c5 c6 23 87 |..#.....|#.....#.|
|000005e0| 22 20 5b 70 75 74 20 77 | 69 74 68 2d 65 6c 69 73 |" [put w|ith-elis|
|000005f0| 70 2d 65 76 61 6c 2d 72 | 65 67 69 6f 6e 20 6c 69 |p-eval-r|egion li|
|00000600| 73 70 2d 69 6e 64 65 6e | 74 2d 66 75 6e 63 74 69 |sp-inden|t-functi|
|00000610| 6f 6e 20 31 20 6c 69 73 | 70 2d 69 6e 64 65 6e 74 |on 1 lis|p-indent|
|00000620| 2d 68 6f 6f 6b 20 65 64 | 65 62 75 67 2d 66 6f 72 |-hook ed|ebug-for|
|00000630| 6d 2d 73 70 65 63 20 74 | 5d 20 34 29 0a 23 40 35 |m-spec t|] 4).#@5|
|00000640| 37 38 20 49 66 20 46 4c | 41 47 20 69 73 20 6e 69 |78 If FL|AG is ni|
|00000650| 6c 2c 20 64 65 63 72 65 | 6d 65 6e 74 20 60 65 76 |l, decre|ment `ev|
|00000660| 61 6c 2d 72 65 67 69 6f | 6e 2d 6c 65 76 65 6c 27 |al-regio|n-level'|
|00000670| 20 77 68 69 6c 65 20 65 | 78 65 63 75 74 69 6e 67 | while e|xecuting|
|00000680| 20 42 4f 44 59 2e 0a 54 | 68 65 20 65 66 66 65 63 | BODY..T|he effec|
|00000690| 74 20 6f 66 20 64 65 63 | 72 65 6d 65 6e 74 69 6e |t of dec|rementin|
|000006a0| 67 20 61 6c 6c 20 74 68 | 65 20 77 61 79 20 74 6f |g all th|e way to|
|000006b0| 20 7a 65 72 6f 20 69 73 | 20 74 68 61 74 20 60 65 | zero is| that `e|
|000006c0| 76 61 6c 2d 72 65 67 69 | 6f 6e 27 0a 77 69 6c 6c |val-regi|on'.will|
|000006d0| 20 75 73 65 20 74 68 65 | 20 6f 72 69 67 69 6e 61 | use the| origina|
|000006e0| 6c 20 60 65 76 61 6c 2d | 72 65 67 69 6f 6e 27 2c |l `eval-|region',|
|000006f0| 20 77 68 69 63 68 20 6d | 61 79 20 62 65 20 74 68 | which m|ay be th|
|00000700| 65 20 45 6d 61 63 73 20 | 73 75 62 72 20 6f 72 20 |e Emacs |subr or |
|00000710| 73 6f 6d 65 0a 70 72 65 | 76 69 6f 75 73 20 72 65 |some.pre|vious re|
|00000720| 64 65 66 69 6e 69 74 69 | 6f 6e 2e 20 20 42 65 66 |definiti|on. Bef|
|00000730| 6f 72 65 20 63 61 6c 6c | 69 6e 67 20 74 68 69 73 |ore call|ing this|
|00000740| 20 6d 61 63 72 6f 2c 20 | 74 68 69 73 20 70 61 63 | macro, |this pac|
|00000750| 6b 61 67 65 20 73 68 6f | 75 6c 64 0a 61 6c 72 65 |kage sho|uld.alre|
|00000760| 61 64 79 20 68 61 76 65 | 20 62 65 65 6e 20 69 6e |ady have| been in|
|00000770| 73 74 61 6c 6c 65 64 2c | 20 75 73 69 6e 67 20 60 |stalled,| using `|
|00000780| 65 6c 69 73 70 2d 65 76 | 61 6c 2d 72 65 67 69 6f |elisp-ev|al-regio|
|00000790| 6e 2d 69 6e 73 74 61 6c | 6c 27 2c 20 77 68 69 63 |n-instal|l', whic|
|000007a0| 68 0a 69 6e 63 72 65 6d | 65 6e 74 73 20 74 68 65 |h.increm|ents the|
|000007b0| 20 63 6f 75 6e 74 20 6f | 6e 63 65 2e 20 20 53 6f | count o|nce. So|
|000007c0| 20 69 66 20 61 6e 6f 74 | 68 65 72 20 70 61 63 6b | if anot|her pack|
|000007d0| 61 67 65 20 73 74 69 6c | 6c 20 72 65 71 75 69 72 |age stil|l requir|
|000007e0| 65 73 20 74 68 65 0a 4c | 69 73 70 20 76 65 72 73 |es the.L|isp vers|
|000007f0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 63 6f 64 65 2c |ion of t|he code,|
|00000800| 20 74 68 65 20 63 6f 75 | 6e 74 20 77 69 6c 6c 20 | the cou|nt will |
|00000810| 73 74 69 6c 6c 20 62 65 | 20 6e 6f 6e 2d 7a 65 72 |still be| non-zer|
|00000820| 6f 2e 0a 0a 54 68 65 20 | 63 6f 75 6e 74 20 69 73 |o...The |count is|
|00000830| 20 6e 6f 74 20 62 6f 75 | 6e 64 20 6c 6f 63 61 6c | not bou|nd local|
|00000840| 6c 79 20 62 79 20 74 68 | 69 73 20 6d 61 63 72 6f |ly by th|is macro|
|00000850| 2c 20 73 6f 20 63 68 61 | 6e 67 65 73 20 62 79 20 |, so cha|nges by |
|00000860| 42 4f 44 59 20 74 6f 0a | 69 74 73 20 76 61 6c 75 |BODY to.|its valu|
|00000870| 65 20 77 69 6c 6c 20 6e | 6f 74 20 62 65 20 6c 6f |e will n|ot be lo|
|00000880| 73 74 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |st...(de|falias '|
|00000890| 77 69 74 68 2d 65 6c 69 | 73 70 2d 65 76 61 6c 2d |with-eli|sp-eval-|
|000008a0| 72 65 67 69 6f 6e 20 27 | 28 6d 61 63 72 6f 20 2e |region '|(macro .|
|000008b0| 20 23 5b 28 66 6c 61 67 | 20 26 72 65 73 74 20 62 | #[(flag| &rest b|
|000008c0| 6f 64 79 29 20 22 c0 c1 | c2 c3 c4 0d 42 42 44 44 |ody) "..|....BBDD|
|000008d0| 43 c6 c7 0e 08 44 c9 42 | 42 45 87 22 20 5b 6c 65 |C....D.B|BE." [le|
|000008e0| 74 20 65 6c 69 73 70 2d | 63 6f 64 65 20 66 75 6e |t elisp-|code fun|
|000008f0| 63 74 69 6f 6e 20 6c 61 | 6d 62 64 61 20 6e 69 6c |ction la|mbda nil|
|00000900| 20 62 6f 64 79 20 69 66 | 20 6e 6f 74 20 66 6c 61 | body if| not fla|
|00000910| 67 20 28 28 75 6e 77 69 | 6e 64 2d 70 72 6f 74 65 |g ((unwi|nd-prote|
|00000920| 63 74 20 28 70 72 6f 67 | 6e 20 28 73 65 74 71 20 |ct (prog|n (setq |
|00000930| 65 6c 69 73 70 2d 65 76 | 61 6c 2d 72 65 67 69 6f |elisp-ev|al-regio|
|00000940| 6e 2d 6c 65 76 65 6c 20 | 28 31 2d 20 65 6c 69 73 |n-level |(1- elis|
|00000950| 70 2d 65 76 61 6c 2d 72 | 65 67 69 6f 6e 2d 6c 65 |p-eval-r|egion-le|
|00000960| 76 65 6c 29 29 20 28 66 | 75 6e 63 61 6c 6c 20 65 |vel)) (f|uncall e|
|00000970| 6c 69 73 70 2d 63 6f 64 | 65 29 29 20 28 73 65 74 |lisp-cod|e)) (set|
|00000980| 71 20 65 6c 69 73 70 2d | 65 76 61 6c 2d 72 65 67 |q elisp-|eval-reg|
|00000990| 69 6f 6e 2d 6c 65 76 65 | 6c 20 28 31 2b 20 65 6c |ion-leve|l (1+ el|
|000009a0| 69 73 70 2d 65 76 61 6c | 2d 72 65 67 69 6f 6e 2d |isp-eval|-region-|
|000009b0| 6c 65 76 65 6c 29 29 29 | 20 28 66 75 6e 63 61 6c |level)))| (funcal|
|000009c0| 6c 20 65 6c 69 73 70 2d | 63 6f 64 65 29 29 5d 20 |l elisp-|code))] |
|000009d0| 36 20 28 23 24 20 2e 20 | 31 36 30 33 29 5d 29 29 |6 (#$ . |1603)]))|
|000009e0| 0a 23 40 33 39 37 20 45 | 78 65 63 75 74 65 20 74 |.#@397 E|xecute t|
|000009f0| 68 65 20 72 65 67 69 6f | 6e 20 61 73 20 4c 69 73 |he regio|n as Lis|
|00000a00| 70 20 63 6f 64 65 2e 0a | 57 68 65 6e 20 63 61 6c |p code..|When cal|
|00000a10| 6c 65 64 20 66 72 6f 6d | 20 70 72 6f 67 72 61 6d |led from| program|
|00000a20| 73 2c 20 65 78 70 65 63 | 74 73 20 74 77 6f 20 61 |s, expec|ts two a|
|00000a30| 72 67 75 6d 65 6e 74 73 | 2c 0a 67 69 76 69 6e 67 |rguments|,.giving|
|00000a40| 20 73 74 61 72 74 69 6e | 67 20 61 6e 64 20 65 6e | startin|g and en|
|00000a50| 64 69 6e 67 20 69 6e 64 | 69 63 65 73 20 69 6e 20 |ding ind|ices in |
|00000a60| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|00000a70| 65 72 0a 6f 66 20 74 68 | 65 20 74 65 78 74 20 74 |er.of th|e text t|
|00000a80| 6f 20 62 65 20 65 78 65 | 63 75 74 65 64 2e 0a 50 |o be exe|cuted..P|
|00000a90| 72 6f 67 72 61 6d 73 20 | 63 61 6e 20 70 61 73 73 |rograms |can pass|
|00000aa0| 20 74 68 69 72 64 20 61 | 72 67 75 6d 65 6e 74 20 | third a|rgument |
|00000ab0| 50 52 49 4e 54 46 4c 41 | 47 20 77 68 69 63 68 20 |PRINTFLA|G which |
|00000ac0| 63 6f 6e 74 72 6f 6c 73 | 20 70 72 69 6e 74 69 6e |controls| printin|
|00000ad0| 67 20 6f 66 20 6f 75 74 | 70 75 74 3a 0a 6e 69 6c |g of out|put:.nil|
|00000ae0| 20 6d 65 61 6e 73 20 64 | 69 73 63 61 72 64 20 69 | means d|iscard i|
|00000af0| 74 3b 20 61 6e 79 74 68 | 69 6e 67 20 65 6c 73 65 |t; anyth|ing else|
|00000b00| 20 69 73 20 73 74 72 65 | 61 6d 20 66 6f 72 20 70 | is stre|am for p|
|00000b10| 72 69 6e 74 2e 0a 0a 54 | 68 69 73 20 76 65 72 73 |rint...T|his vers|
|00000b20| 69 6f 6e 2c 20 66 72 6f | 6d 20 60 65 76 61 6c 2d |ion, fro|m `eval-|
|00000b30| 72 65 67 2e 65 6c 27 2c | 20 61 6c 6c 6f 77 73 20 |reg.el',| allows |
|00000b40| 4c 69 73 70 20 63 75 73 | 74 6f 6d 69 7a 61 74 69 |Lisp cus|tomizati|
|00000b50| 6f 6e 20 6f 66 20 72 65 | 61 64 2c 0a 65 76 61 6c |on of re|ad,.eval|
|00000b60| 2c 20 61 6e 64 20 74 68 | 65 20 70 72 69 6e 74 65 |, and th|e printe|
|00000b70| 72 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 65 |r...(def|alias 'e|
|00000b80| 6c 69 73 70 2d 65 76 61 | 6c 2d 72 65 67 69 6f 6e |lisp-eva|l-region|
|00000b90| 20 23 5b 28 65 6c 69 73 | 70 2d 73 74 61 72 74 20 | #[(elis|p-start |
|00000ba0| 65 6c 69 73 70 2d 65 6e | 64 20 26 6f 70 74 69 6f |elisp-en|d &optio|
|00000bb0| 6e 61 6c 20 65 6c 69 73 | 70 2d 6f 75 74 70 75 74 |nal elis|p-output|
|00000bc0| 29 20 22 08 c1 55 83 5c | 66 00 c2 0b 5c 66 0d 23 |) "..U.\|f...\f.#|
|00000bd0| 87 60 70 70 c6 20 5c 66 | c7 93 c7 89 1e 08 1e 09 |.`pp. \f|........|
|00000be0| 1e 5c 6e 1e 0b 1e 5c 66 | 1e 0d 0b 62 88 ce 20 88 |.\n...\f|...b.. .|
|00000bf0| 60 0e 5c 6e 57 83 87 00 | cf 0e 5c 66 21 16 09 70 |`.\nW...|..\f!..p|
|00000c00| 1e 10 0e 0b 71 88 d1 0e | 09 21 16 08 70 16 0b 0e |....q...|.!..p...|
|00000c10| 10 71 88 29 0d 83 79 00 | 0d 86 53 00 d2 1e 13 0e |.q.)..y.|..S.....|
|00000c20| 08 0e 14 42 16 14 0e 13 | d2 3d 83 6b 00 d5 0e 08 |...B....|.=.k....|
|00000c30| 21 88 82 78 00 d6 d7 21 | 88 d5 0e 08 21 88 d6 d7 |!..x...!|....!...|
|00000c40| 21 88 29 0e 5c 6e 60 5d | ce 20 88 60 5e 62 88 82 |!.).\n`]|. .`^b..|
|00000c50| 28 00 0d 84 93 00 0e 5c | 66 71 88 0e 0d 62 88 2e |(......\|fq...b..|
|00000c60| 06 c7 87 22 20 5b 65 6c | 69 73 70 2d 65 76 61 6c |..." [el|isp-eval|
|00000c70| 2d 72 65 67 69 6f 6e 2d | 6c 65 76 65 6c 20 30 20 |-region-|level 0 |
|00000c80| 6f 72 69 67 69 6e 61 6c | 2d 65 76 61 6c 2d 72 65 |original|-eval-re|
|00000c90| 67 69 6f 6e 20 65 6c 69 | 73 70 2d 73 74 61 72 74 |gion eli|sp-start|
|00000ca0| 20 65 6c 69 73 70 2d 65 | 6e 64 20 65 6c 69 73 70 | elisp-e|nd elisp|
|00000cb0| 2d 6f 75 74 70 75 74 20 | 6d 61 6b 65 2d 6d 61 72 |-output |make-mar|
|00000cc0| 6b 65 72 20 6e 69 6c 20 | 65 6c 69 73 70 2d 76 61 |ker nil |elisp-va|
|00000cd0| 6c 20 65 6c 69 73 70 2d | 66 6f 72 6d 20 65 6c 69 |l elisp-|form eli|
|00000ce0| 73 70 2d 65 6e 64 2d 6d | 61 72 6b 65 72 20 65 6c |sp-end-m|arker el|
|00000cf0| 69 73 70 2d 69 6e 73 69 | 64 65 2d 62 75 66 20 65 |isp-insi|de-buf e|
|00000d00| 6c 69 73 70 2d 62 75 66 | 20 65 6c 69 73 70 2d 70 |lisp-buf| elisp-p|
|00000d10| 6e 74 20 65 6c 69 73 70 | 2d 73 6b 69 70 2d 77 68 |nt elisp|-skip-wh|
|00000d20| 69 74 65 73 70 61 63 65 | 20 72 65 61 64 20 65 6c |itespace| read el|
|00000d30| 69 73 70 2d 63 75 72 72 | 65 6e 74 2d 62 75 66 66 |isp-curr|ent-buff|
|00000d40| 65 72 20 65 76 61 6c 20 | 74 20 73 74 61 6e 64 61 |er eval |t standa|
|00000d50| 72 64 2d 6f 75 74 70 75 | 74 20 76 61 6c 75 65 73 |rd-outpu|t values|
|00000d60| 20 70 72 69 6e 31 20 70 | 72 69 6e 63 20 22 5c 6e | prin1 p|rinc "\n|
|00000d70| 22 5d 20 36 20 28 23 24 | 20 2e 20 32 35 33 35 29 |"] 6 (#$| . 2535)|
|00000d80| 20 22 72 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | "r"]).(|defalias|
|00000d90| 20 27 65 6c 69 73 70 2d | 73 6b 69 70 2d 77 68 69 | 'elisp-|skip-whi|
|00000da0| 74 65 73 70 61 63 65 20 | 23 5b 6e 69 6c 20 22 c0 |tespace |#[nil ".|
|00000db0| c1 77 88 67 c2 55 85 15 | 00 c3 c1 77 88 c0 c1 77 |.w.g.U..|...w...w|
|00000dc0| 88 82 04 00 87 22 20 5b | 22 20 09 0d 5c 6e 5c 66 |....." [|" ..\n\f|
|00000dd0| 22 20 6e 69 6c 20 35 39 | 20 22 5e 5c 6e 0d 22 5d |" nil 59| "^\n."]|
|00000de0| 20 32 5d 29 0a 23 40 32 | 32 36 20 45 78 65 63 75 | 2]).#@2|26 Execu|
|00000df0| 74 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |te the c|urrent b|
|00000e00| 75 66 66 65 72 20 61 73 | 20 4c 69 73 70 20 63 6f |uffer as| Lisp co|
|00000e10| 64 65 2e 0a 50 72 6f 67 | 72 61 6d 73 20 63 61 6e |de..Prog|rams can|
|00000e20| 20 70 61 73 73 20 61 72 | 67 75 6d 65 6e 74 20 50 | pass ar|gument P|
|00000e30| 52 49 4e 54 46 4c 41 47 | 20 77 68 69 63 68 20 63 |RINTFLAG| which c|
|00000e40| 6f 6e 74 72 6f 6c 73 20 | 70 72 69 6e 74 69 6e 67 |ontrols |printing|
|00000e50| 20 6f 66 20 6f 75 74 70 | 75 74 3a 0a 6e 69 6c 20 | of outp|ut:.nil |
|00000e60| 6d 65 61 6e 73 20 64 69 | 73 63 61 72 64 20 69 74 |means di|scard it|
|00000e70| 3b 20 61 6e 79 74 68 69 | 6e 67 20 65 6c 73 65 20 |; anythi|ng else |
|00000e80| 69 73 20 73 74 72 65 61 | 6d 20 66 6f 72 20 70 72 |is strea|m for pr|
|00000e90| 69 6e 74 2e 0a 0a 54 68 | 69 73 20 76 65 72 73 69 |int...Th|is versi|
|00000ea0| 6f 6e 20 63 61 6c 6c 73 | 20 60 65 76 61 6c 2d 72 |on calls| `eval-r|
|00000eb0| 65 67 69 6f 6e 27 20 6f | 6e 20 74 68 65 20 77 68 |egion' o|n the wh|
|00000ec0| 6f 6c 65 20 62 75 66 66 | 65 72 2e 1f 0a 28 64 65 |ole buff|er...(de|
|00000ed0| 66 61 6c 69 61 73 20 27 | 65 6c 69 73 70 2d 65 76 |falias '|elisp-ev|
|00000ee0| 61 6c 2d 63 75 72 72 65 | 6e 74 2d 62 75 66 66 65 |al-curre|nt-buffe|
|00000ef0| 72 20 23 5b 28 26 6f 70 | 74 69 6f 6e 61 6c 20 65 |r #[(&op|tional e|
|00000f00| 6c 69 73 70 2d 6f 75 74 | 70 75 74 29 20 22 c0 65 |lisp-out|put) ".e|
|00000f10| 64 09 23 87 22 20 5b 65 | 76 61 6c 2d 72 65 67 69 |d.#." [e|val-regi|
|00000f20| 6f 6e 20 65 6c 69 73 70 | 2d 6f 75 74 70 75 74 5d |on elisp|-output]|
|00000f30| 20 34 20 28 23 24 20 2e | 20 33 35 36 33 29 20 6e | 4 (#$ .| 3563) n|
|00000f40| 69 6c 5d 29 0a 23 40 32 | 35 32 20 45 78 65 63 75 |il]).#@2|52 Execu|
|00000f50| 74 65 20 42 55 46 46 45 | 52 20 61 73 20 4c 69 73 |te BUFFE|R as Lis|
|00000f60| 70 20 63 6f 64 65 2e 20 | 20 55 73 65 20 63 75 72 |p code. | Use cur|
|00000f70| 72 65 6e 74 20 62 75 66 | 66 65 72 20 69 66 20 42 |rent buf|fer if B|
|00000f80| 55 46 46 45 52 20 69 73 | 20 6e 69 6c 2e 0a 50 72 |UFFER is| nil..Pr|
|00000f90| 6f 67 72 61 6d 73 20 63 | 61 6e 20 70 61 73 73 20 |ograms c|an pass |
|00000fa0| 61 72 67 75 6d 65 6e 74 | 20 50 52 49 4e 54 46 4c |argument| PRINTFL|
|00000fb0| 41 47 20 77 68 69 63 68 | 20 63 6f 6e 74 72 6f 6c |AG which| control|
|00000fc0| 73 20 70 72 69 6e 74 69 | 6e 67 20 6f 66 0a 6f 75 |s printi|ng of.ou|
|00000fd0| 74 70 75 74 3a 20 6e 69 | 6c 20 6d 65 61 6e 73 20 |tput: ni|l means |
|00000fe0| 64 69 73 63 61 72 64 20 | 69 74 3b 20 61 6e 79 74 |discard |it; anyt|
|00000ff0| 68 69 6e 67 20 65 6c 73 | 65 20 69 73 20 73 74 72 |hing els|e is str|
|00001000| 65 61 6d 20 66 6f 72 20 | 70 72 69 6e 74 2e 0a 0a |eam for |print...|
|00001010| 54 68 69 73 20 76 65 72 | 73 69 6f 6e 20 63 61 6c |This ver|sion cal|
|00001020| 6c 73 20 60 65 76 61 6c | 2d 72 65 67 69 6f 6e 27 |ls `eval|-region'|
|00001030| 20 6f 6e 20 74 68 65 20 | 77 68 6f 6c 65 20 62 75 | on the |whole bu|
|00001040| 66 66 65 72 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ffer...(|defalias|
|00001050| 20 27 65 6c 69 73 70 2d | 65 76 61 6c 2d 62 75 66 | 'elisp-|eval-buf|
|00001060| 66 65 72 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |fer #[(&|optional|
|00001070| 20 65 6c 69 73 70 2d 62 | 75 66 6e 61 6d 65 20 65 | elisp-b|ufname e|
|00001080| 6c 69 73 70 2d 70 72 69 | 6e 74 66 6c 61 67 29 20 |lisp-pri|ntflag) |
|00001090| 22 08 84 06 00 70 10 8a | c1 08 21 86 11 00 c2 c3 |"....p..|..!.....|
|000010a0| 08 5c 22 71 88 c4 65 64 | 0d 23 29 87 22 20 5b 65 |.\"q..ed|.#)." [e|
|000010b0| 6c 69 73 70 2d 62 75 66 | 6e 61 6d 65 20 67 65 74 |lisp-buf|name get|
|000010c0| 2d 62 75 66 66 65 72 20 | 65 72 72 6f 72 20 22 4e |-buffer |error "N|
|000010d0| 6f 20 73 75 63 68 20 62 | 75 66 66 65 72 3a 20 25 |o such b|uffer: %|
|000010e0| 73 22 20 65 76 61 6c 2d | 72 65 67 69 6f 6e 20 65 |s" eval-|region e|
|000010f0| 6c 69 73 70 2d 70 72 69 | 6e 74 66 6c 61 67 5d 20 |lisp-pri|ntflag] |
|00001100| 34 20 28 23 24 20 2e 20 | 33 39 31 35 29 20 6e 69 |4 (#$ . |3915) ni|
|00001110| 6c 5d 29 0a 28 70 72 6f | 76 69 64 65 20 28 71 75 |l]).(pro|vide (qu|
|00001120| 6f 74 65 20 65 76 61 6c | 2d 72 65 67 29 29 0a |ote eval|-reg)). |
+--------+-------------------------+-------------------------+--------+--------+